package com.sl.plugin.step.maven.compile;

import com.sl.core.engine.annotations.Comp;
import com.sl.core.engine.data.ProcessCompContextService;
import com.sl.core.engine.meta.ProcessCompDescriptorService;
import com.sl.core.engine.meta.impl.AbstractProcessCompDescriptor;
import com.sl.core.engine.meta.row.ProcessRowDescriptor;
import com.sl.core.engine.step.ProcessCompService;
import lombok.Getter;

import java.util.Map;

/**
 */
@Getter
public class MavenCompileCompDescriptor extends AbstractProcessCompDescriptor<
        MavenCompileComp,
        MavenCompileCompContext> implements ProcessCompDescriptorService {


//    @Override
//    protected ProcessCompService getComp() {
//        return new MavenCompileComp(this);
//    }
//
//    @Override
//    public ProcessCompContextService getContext() {
//        return new MavenCompileCompContext();
//    }

    @Override
    public void loadDescriptor(Map<String, Object> map) {
        //标记为起始
        this.setIsStartStep(true);
//        map.put("seleniumConfig", new SeleniumConfig());
    }

    @Override
    public ProcessRowDescriptor getResultDescriptor(ProcessRowDescriptor rowDescriptor) {
        rowDescriptor.clear();
//        rowDescriptor.addListString("log");
        return rowDescriptor;
    }
}
